<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<!-- 
	晧智请假明细表  重新开发
 -->
<%@ include file="/hrm/header.jsp" %>
<%@ taglib uri="/WEB-INF/weaver.tld" prefix="wea"%>
<%
	String fromDate = strUtil.vString(request.getParameter("fromDate"));
	String toDate = strUtil.vString(request.getParameter("toDate"));
	int subCompanyId = strUtil.parseToInt(request.getParameter("subCompanyId"),0);
	int departmentId = strUtil.parseToInt(request.getParameter("departmentId"),0);
	String resourceId = strUtil.vString(request.getParameter("resourceId"));

	//非考勤管理员只能看到自己的记录
	if(!HrmUserVarify.checkUserRight("BohaiInsuranceScheduleReport:View", user)){
		resourceId = String.valueOf(user.getUID());
	}

	String imagefilename = "/images/hdReport_wev8.gif", needfav = "1", needhelp = "";
	String titlename = SystemEnv.getHtmlLabelName(179,user.getLanguage())+"："+SystemEnv.getHtmlLabelName(16559,user.getLanguage())+"—"+SystemEnv.getHtmlLabelName(20092,user.getLanguage());
	String isDialog = Util.null2String(request.getParameter("isdialog"));
%>
<html>
	<head>
		<LINK href="/css/Weaver_wev8.css" type=text/css rel=STYLESHEET>
		<SCRIPT language="javascript" src="/js/weaver_wev8.js"></script>
		<script type="text/javascript">
			var dialog = parent.parent.getDialog(parent);
			
			function exportExcel(){
				document.getElementById("excels").src = "HrmScheduleDiffReportExcel.jsp?cmd=HrmScheduleDiffLeaveDetail&tnum=20092&fromDate=<%=fromDate%>&toDate=<%=toDate%>&resourceId=<%=resourceId%>&departmentId=<%=departmentId%>&subCompanyId=<%=subCompanyId%>";
			}
		</script>
	</head>
	<body>

	<form action="demo_edittableoperation.jsp" method="post" id="weaver" name="weaver">
<wea:layout type="fourCol">
     <wea:group context="数据列表">
            <wea:item attributes="{'isTableList':'true','colspan':'full'}">
                <%
                    String orderby ="name"; //排序字段
                    String tableString = "";  //定义表格xml数据
                    String backfields = "*"; //查询的字段
                    String fromSql  = "demotable";//查询的表名或者视图名
                    String sqlWhere = " 1=1 "; //查询条件
                    tableString =   " <table instanceid=\"db_list\" tabletype=\"checkbox\" pagesize=\"5\" >"+ //指定分页条数和初始化id以及是否有复选框
                                    " <checkboxpopedom  id=\"checkbox\" popedompara=\"column:id\" showmethod=\"weaver.oatest.DemoUtil.getCanCheck\" />"+//用于控制checkbox 框是否可用
                                    "       <sql backfields=\""+backfields+"\" sqlform=\""+fromSql+"\" sqlwhere=\""+Util.toHtmlForSplitPage(sqlWhere)+"\"  sqlorderby=\""+orderby+"\"  sqlprimarykey=\"id\" sqlsortway=\"asc\" sqlisdistinct=\"false\" />"+
                                    "       <head>"+
                                    "           <col width=\"10%\"  text=\"数据ID\" column=\"id\" orderkey=\"id\" />"+
                                    "           <col width=\"20%\"  text=\"数据名称\" column=\"name\" />"+
                                    "           <col width=\"20%\"  text=\"用户名称\" column=\"userid\" orderkey=\"userid\" transmethod=\"weaver.hrm.resource.ResourceComInfo.getLastname\" />"+
                                    "           <col width=\"20%\"  text=\"数量\" column=\"scount\"  orderkey=\"scount\" />"+
                                    "           <col width=\"10%\"  text=\"单价\" column=\"sprice\" orderkey=\"sprice\" />"+
                                    "       </head>"+
                                    "       <operates>"+//相关操作
                                    "       <popedom column=\"id\" otherpara=\"column:userid\" transmethod=\"weaver.oatest.DemoUtil.getCanOperation\"></popedom> "+//用于控制操作菜单是否可用，返回的ArrayList的序列对应下面的index
                                    "       <operate href=\"javascript:onDel();\" text=\""+SystemEnv.getHtmlLabelName(91,user.getLanguage())+"\" otherpara=\"column:userid\" target=\"_self\" index=\"0\"/>"+
                                    "       <operate href=\"javascript:onshowlog();\" text=\""+SystemEnv.getHtmlLabelName(83,user.getLanguage())+"\" otherpara=\"column:userid\" target=\"_self\" index=\"1\"/>"+
                                    "       </operates>"+
                                    " </table>";

                %>
                 <wea:SplitPageTag  tableString='<%=tableString%>'  mode="run" />
                 <!-- 显示分页数据 -->
            </wea:item>
     </wea:group>
</wea:layout>
</form>


	
		<iframe name="excels" id="excels" src="" style="display:none" ></iframe>
	</body>
</html>
